package com.yzy.soft.common.persistence.model;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
/**
* @author Yinzhiyuan
* @date 2018-12-19 01:02:21
*/
//@Entity
@TableName(value="metadata_database")
public class MetadataDatabase extends Model<MetadataDatabase> {

    /**
     *编码
     */
    @TableId(type= IdType.AUTO)
    private Integer id;

    /**
     *域
     */
    private String ip;


    private String url;
    private String driver;
    @TableField(value="name_zh")
    private String nameZh;
    @TableField(value="name_en")
    private String nameEn;
    /**
     *公司名称
     */
    @TableField(value="company_name")
    private String companyName;

    /**
     *公司编码
     */
    @TableField(value="company_id")
    private String companyId;

    /**
     *
     */
    private String author;

    /**
     *作者
     */
    private String host;

    /**
     *端口
     */
    private Integer port;

    /**
     *用户名
     */
    private String username;

    /**
     *密码
     */
    private String password;

    /**
     *描述
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="create_time")
    private Date createTime;

    /**
     *描述
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="update_time",fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     *检查时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="check_time")
    private Date checkTime;

    /**
     *检查时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="last_check_time",fill= FieldFill.INSERT_UPDATE)
    private Date lastCheckTime;

    /**
     *首次同步时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="synchro_time")
    private Date synchroTime;

    /**
     *最近一次同步时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="last_synchro_time",fill= FieldFill.INSERT_UPDATE)
    private Date lastSynchroTime;

    /**
     *描述
     */
    private String description;

    /**
     *
     */
    private String createperson;

    /**
     *
     */
    private String makerperson;

    /**
     *
     */
    private Date createtime;

    /**
     *
     */
    private Date lastupdatetime;

    /**
     *
     */
    private String makegoal;

    /**
     *
     */
    private String lastupdategoal;

    /**
     *
     */
    private Integer userflag;

    /**
     *
     */
    private String deleteflag;

    /**
     *
     */
    private String spareflag1;

    /**
     *
     */
    private String spareflag2;

    /**
     *
     */
    private String spareflag3;

    /**
     *
     */
    private String spareflag4;

    /**
     *
     */
    private String spareflag5;

    /**
     *
     */
    private String sparefield1;

    /**
     *
     */
    private String sparefield2;

    /**
     *
     */
    private String sparefield3;

    /**
     *
     */
    private String sparefield4;

    /**
     *
     */
    private String sparefield5;

    /**
     *
     */
    private String sparefield6;


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCompanyName() {
        return this.companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyId() {
        return this.companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getHost() {
        return this.host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return this.port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCheckTime() {
        return this.checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public Date getLastCheckTime() {
        return this.lastCheckTime;
    }

    public void setLastCheckTime(Date lastCheckTime) {
        this.lastCheckTime = lastCheckTime;
    }

    public Date getSynchroTime() {
        return this.synchroTime;
    }

    public void setSynchroTime(Date synchroTime) {
        this.synchroTime = synchroTime;
    }

    public Date getLastSynchroTime() {
        return this.lastSynchroTime;
    }

    public void setLastSynchroTime(Date lastSynchroTime) {
        this.lastSynchroTime = lastSynchroTime;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreateperson() {
        return this.createperson;
    }

    public void setCreateperson(String createperson) {
        this.createperson = createperson;
    }

    public String getMakerperson() {
        return this.makerperson;
    }

    public void setMakerperson(String makerperson) {
        this.makerperson = makerperson;
    }

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getLastupdatetime() {
        return this.lastupdatetime;
    }

    public void setLastupdatetime(Date lastupdatetime) {
        this.lastupdatetime = lastupdatetime;
    }

    public String getMakegoal() {
        return this.makegoal;
    }

    public void setMakegoal(String makegoal) {
        this.makegoal = makegoal;
    }

    public String getLastupdategoal() {
        return this.lastupdategoal;
    }

    public void setLastupdategoal(String lastupdategoal) {
        this.lastupdategoal = lastupdategoal;
    }

    public Integer getUserflag() {
        return this.userflag;
    }

    public void setUserflag(Integer userflag) {
        this.userflag = userflag;
    }

    public String getDeleteflag() {
        return this.deleteflag;
    }

    public void setDeleteflag(String deleteflag) {
        this.deleteflag = deleteflag;
    }

    public String getSpareflag1() {
        return this.spareflag1;
    }

    public void setSpareflag1(String spareflag1) {
        this.spareflag1 = spareflag1;
    }

    public String getSpareflag2() {
        return this.spareflag2;
    }

    public void setSpareflag2(String spareflag2) {
        this.spareflag2 = spareflag2;
    }

    public String getSpareflag3() {
        return this.spareflag3;
    }

    public void setSpareflag3(String spareflag3) {
        this.spareflag3 = spareflag3;
    }

    public String getSpareflag4() {
        return this.spareflag4;
    }

    public void setSpareflag4(String spareflag4) {
        this.spareflag4 = spareflag4;
    }

    public String getSpareflag5() {
        return this.spareflag5;
    }

    public void setSpareflag5(String spareflag5) {
        this.spareflag5 = spareflag5;
    }

    public String getSparefield1() {
        return this.sparefield1;
    }

    public void setSparefield1(String sparefield1) {
        this.sparefield1 = sparefield1;
    }

    public String getSparefield2() {
        return this.sparefield2;
    }

    public void setSparefield2(String sparefield2) {
        this.sparefield2 = sparefield2;
    }

    public String getSparefield3() {
        return this.sparefield3;
    }

    public void setSparefield3(String sparefield3) {
        this.sparefield3 = sparefield3;
    }

    public String getSparefield4() {
        return this.sparefield4;
    }

    public void setSparefield4(String sparefield4) {
        this.sparefield4 = sparefield4;
    }

    public String getSparefield5() {
        return this.sparefield5;
    }

    public void setSparefield5(String sparefield5) {
        this.sparefield5 = sparefield5;
    }

    public String getSparefield6() {
        return this.sparefield6;
    }

    public void setSparefield6(String sparefield6) {
        this.sparefield6 = sparefield6;
    }

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getNameZh() {
        return nameZh;
    }

    public void setNameZh(String nameZh) {
        this.nameZh = nameZh;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }


    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    @Override
    public String toString() {
        return "MetadataDatabase{" +
                "id=" + id +
                ", ip='" + ip + '\'' +
                ", url='" + url + '\'' +
                ", driver='" + driver + '\'' +
                ", nameZh='" + nameZh + '\'' +
                ", nameEn='" + nameEn + '\'' +
                ", companyName='" + companyName + '\'' +
                ", companyId='" + companyId + '\'' +
                ", author='" + author + '\'' +
                ", host='" + host + '\'' +
                ", port=" + port +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", checkTime=" + checkTime +
                ", lastCheckTime=" + lastCheckTime +
                ", synchroTime=" + synchroTime +
                ", lastSynchroTime=" + lastSynchroTime +
                ", description='" + description + '\'' +
                ", createperson='" + createperson + '\'' +
                ", makerperson='" + makerperson + '\'' +
                ", createtime=" + createtime +
                ", lastupdatetime=" + lastupdatetime +
                ", makegoal='" + makegoal + '\'' +
                ", lastupdategoal='" + lastupdategoal + '\'' +
                ", userflag=" + userflag +
                ", deleteflag='" + deleteflag + '\'' +
                ", spareflag1='" + spareflag1 + '\'' +
                ", spareflag2='" + spareflag2 + '\'' +
                ", spareflag3='" + spareflag3 + '\'' +
                ", spareflag4='" + spareflag4 + '\'' +
                ", spareflag5='" + spareflag5 + '\'' +
                ", sparefield1='" + sparefield1 + '\'' +
                ", sparefield2='" + sparefield2 + '\'' +
                ", sparefield3='" + sparefield3 + '\'' +
                ", sparefield4='" + sparefield4 + '\'' +
                ", sparefield5='" + sparefield5 + '\'' +
                ", sparefield6='" + sparefield6 + '\'' +
                '}';
    }
}